import { service } from "../http/index";

// 管理端功能

export function otherEvoQuestion(data) {
  return service({
    method: "get",
    url: "/api/manager/otherEvoQuestion",
    params: data,
  });
} // 他评问卷

export function saveEvoQuestion(data) {
  return service({
    method: "post",
    url: "/api/manager/saveEvoQuestion",
    data,
  });
} //他评问卷提交

export function saveReferral(data) {
  return service({
    method: "post",
    url: "/api/manager/saveReferral",
    data,
  });
} //管理端转介信息保存

export function getConsultantList(data) {
  return service({
    method: "get",
    url: "/api/consultant/page",
    params: data,
  });
} //分页获取咨询师列表

export function getRecommendCourseList(data) {
  return service({
    method: "get",
    url: "/employee/getRecommendCourseList",
    params: data,
  });
} //获取推荐课程列表

export function joinTheCourse(data) {
  return service({
    method: "post",
    url: "/employee/joinTheCourse",
    data,
  });
}

// 管理端个案列表
export function getManagerCaseList(data) {
  return service({
    method: "get",
    url: "/api/manager/getManagerCaseList" + "/" + data.referralNumber,
  });
}

export function getDetail(data) {
  return service({
    method: "get",
    url: "/api/manager/getDetail",
    params: data,
  });
}

// 数据看板
export function dataBord(data) {
  return service({
    method: "get",
    url: "/api/manager/dataBord",
    params: data,
  });
}

// 危机干预对话
export function getRiskConversation(data) {
  return service({
    method: "get",
    url: "/employee/getRiskConversation",
    params: data,
  });
}

// 危机复盘数据提交
export function riskReviewDataSave(data) {
  return service({
    method: "post",
    url: "/api/manager/riskReviewDataSave",
    data,
  });
}

// 发送邮件给项目经理
export function sendEmail(data) {
  return service({
    method: "get",
    url: "/api/manager/sendEmail",
    params: data,
  });
}

// 查看pdf
export function viewWord(data) {
  return service({
    method: "get",
    url: "/api/manager/viewPDF",
    params: data,
  });
}
